<!DOCTYPE HTML>
<!--

-->
<html>
	<head>
		<title>个人知识记录@怎么设置返回首页？</title>
        <link rel='icon' href='../../images/pic.ico ' type=‘image/x-ico’ /> <!-- 头部小图标 -->
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
		<link rel="stylesheet" href="../../assets/css/main.css" />
		<noscript><link rel="stylesheet" href="../../assets/css/noscript.css" /></noscript>
	</head>
	<body class="is-preload">

		<!-- One -->
			<section id="one" class="main style1">
				<div class="container">
					<header class="major special">
						<h2>怎么设置返回首页？</h2>
					</header>

					<section>
						<p>
                        只需要在你现在的页面上做一个链接就可以了，<br><br>
                        具体来说：<br><br>
                        <code>&lt;a href=&quot;首页地址&quot;&gt;返回首页&lt;/a&gt;</code><br><br>
                        其中“首页地址”可以是相对路径也可以是绝对路径，推荐相对路径。<br><br>
                        返回上一次操作的页面<br><br>
                        <code>&lt;a href=&quot;javascript:history.back()&quot; title=&quot;返回&quot;&gt;返回上一页&lt;/a&gt;</code><br><br>
                        </p>
                    </section>

				</div>
			</section>
		
		<!-- Footer -->
			<section id="footer">
                <p>
                <a href="#" onClick="javascript :history.go(-1);">回到上页</a>&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="http://xmlcy.github.io">回到首页</a>
                <p>
				<ul class="copyright">
					<li><a href="https://beian.miit.gov.cn" target="_blank">赣ICP备19013545号-3</a></li>
				</ul>
			</section>
		<!-- Scripts -->
			<script src="../../assets/js/jquery.min.js"></script>
			<script src="../../assets/js/jquery.scrolly.min.js"></script>
			<script src="../../assets/js/browser.min.js"></script>
			<script src="../../assets/js/breakpoints.min.js"></script>
			<script src="../../assets/js/util.js"></script>
			<script src="../../assets/js/main.js"></script>
	</body>
</html>
